var app = angular.module(setting.appName);
app.register.controller("RechargeUsTypeCtrl", ["$rootScope", "$scope", "$location", "$timeout", "$window", "ToastMessage", "SecurityService", "FundService", function($rootScope, $scope, $location, $timeout, $window, ToastMessage, SecurityService, FundService) {
    function getSystemCredit(type) {
        FundService.getSystemCredit("USD").success(function(data) {
            if (data && data.success) {
                var credit = data.result;
                0 === credit ? ($scope.setCredit = !0,
                $scope.credit = 0) : credit > 0 ? ($scope.setCredit = !0,
                $scope.credit = credit) : $scope.setCredit = !1
            }
        })
    }
    $scope.setCredit = !1,
    getSystemCredit()
}
]);
